package com.woniu.controller;

import com.woniu.entity.ClassInfo;
import com.woniu.mapper.ClassInfoMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/class")
public class ClassInfoController {
    @Resource
    private ClassInfoMapper classInfoMapper;
    @RequestMapping("/findAll")
    public List<ClassInfo> findAll(){
        return classInfoMapper.findAll();
    }
}
